package com.spring.datasource.multi;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class MultiDatasource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DatasourceKeyHolder.getKey();
    }
}
